/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package actioncombination.problem.gridworld;
import actioncombination.logic.agent.*;
import actioncombination.logic.environment.*;
import actioncombination.problem.gridworld.PerceptionImpl;
import actioncombination.problem.gridworld.AgentStateImpl;
import actioncombination.logic.agent.GoalTest;

/**
 *
 * @author Administrador
 */


/**
 *
 * @author Administrador
 */
public class GoalTestImpl extends GoalTest{
   
    @Override
    public boolean isGoalState(AgentState agentState) {
        AgentStateImpl ra=(AgentStateImpl) agentState;
        if ((ra.noHayMasTargets()&& ra.salidaAlcanzada())|| ra.isTerminal())
            return true;
        else 
            return false;
    }

}
